package application.controller 
{
	import application.model.DataProxy;
	import application.model.DecorationProxy;
	import application.model.GroupProxy;
	import application.model.LayoutProxy;
	import application.model.ModuleNavProxy;
	import application.model.ModuleProxy;
	import application.model.PhotoAreaProxy;
	import application.model.PhotoViewProxy;
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	/**
	 * 初始化
	 * @author Ning
	 */
	public class InitCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void 
		{
			var dataProxy:DataProxy = facade.retrieveProxy(DataProxy.NAME) as DataProxy;
			dataProxy.setConfig();
			
			var layoutProxy:LayoutProxy = facade.retrieveProxy(LayoutProxy.NAME) as LayoutProxy;
			layoutProxy.setConfig();
			
			var photoAreaProxy:PhotoAreaProxy = facade.retrieveProxy(PhotoAreaProxy.NAME) as PhotoAreaProxy;
			photoAreaProxy.setConfig();
			
			var photoViewProxy:PhotoViewProxy = facade.retrieveProxy(PhotoViewProxy.NAME) as PhotoViewProxy;
			photoViewProxy.setConfig();
			
			var groupProxy:GroupProxy = facade.retrieveProxy(GroupProxy.NAME) as GroupProxy;
			groupProxy.setConfig();
			
			var moduleNavProxy:ModuleNavProxy=facade.retrieveProxy(ModuleNavProxy.NAME) as ModuleNavProxy;
			moduleNavProxy.setConfig();
			
			var moduleProxy:ModuleProxy=facade.retrieveProxy(ModuleProxy.NAME) as ModuleProxy;
			moduleProxy.setConfig();
			
			var decorationProxy:DecorationProxy=facade.retrieveProxy(DecorationProxy.NAME) as DecorationProxy;
			decorationProxy.setConfig();
			
		}
	}
}